package com.songcha.module_task.ui.activity

import android.os.Bundle
import android.view.View
import com.songcha.library_base.base.BaseActivity
import com.songcha.library_common.util.LogUtil
import com.songcha.module_task.R
import com.songcha.module_task.databinding.TaskActivityMainBinding
import com.songcha.module_task.ui.fragment.task.TaskFragment


class MainActivity :BaseActivity() {
   /* override fun getLayoutId(): Int {
        return R.layout.task_activity_main
    }*/

    lateinit var binding:TaskActivityMainBinding

    override fun getRootView(): View? {
        //return super.getRootView()
        binding=TaskActivityMainBinding.inflate(layoutInflater)
        return binding.root
    }

    override fun initView(savedInstanceState: Bundle?) {
        super.initView(savedInstanceState)

        val trans=supportFragmentManager.beginTransaction()
        trans.replace(R.id.home_frag, TaskFragment())
        trans.commit()
    }

    override fun isImmerseStatusBar(): Boolean {
        return true
    }

}